package com.sky.service;

import com.sky.dto.AddDishDto;
import com.sky.dto.DishPageQueryDTO;
import com.sky.dto.UpdateDishDto;
import com.sky.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.result.PageResult;

import java.util.List;

/**
 * <p>
 * 菜品 服务类
 * </p>
 *
 * @author author
 * @since 2024-06-25
 */
public interface DishService extends IService<Dish> {
    void addDish(AddDishDto dto);

    List<Dish> getDishByCategoryId(Long categoryId);

    void updateDishStatus(Integer status, Long id);

    void updateDish(UpdateDishDto dto);

    void deleteByIds(List<Long> ids);

    PageResult pageQuery(DishPageQueryDTO dto);
}
